import random

print("游戏开始")
input_range = ["拳头", "剪刀", "布"]
computer = random.choice(["拳头", "剪刀", "布"])
player = input("请出拳（拳头，剪刀，布）:")
print("电脑出：", computer)
if player in input_range:
    if computer == player:
        print('平局')
    elif computer == "拳头" and player == "剪刀" or computer == "布" and player == "拳头" or computer == "剪刀" and player == "布":
        print("电脑赢")
    else:
        print("玩家赢")
else:
    print("不在出拳范围")
